<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Dart : Libraries : box2d : ConstantVolumeJoint</title>
</head>

<body>

<header></header>

<h1 id="title">class <a name='ConstantVolumeJoint::ConstantVolumeJoint'>ConstantVolumeJoint</a></h1>

<section id="inheritance">

<section class="supertype">
<h2>Supertype:</h2>
<ul><li><a href='Joint.html#Joint::Joint'>Joint</a></li></ul>
</section>

</section>

<section id="summary">

 This joint is commonly used to simulate a soft body with a constant volume.
 A constant volume joint can only be created with three or more bodies. The
 area within a grouping of constant volume joints is kept constant, such that
 the compression of one part of the area will be offset by the expansion of
 other parts.
</section>

<section id="fields">
<h2>Fields</h2>
<dl>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='ConstantVolumeJoint::area'>area
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='List.html#List::List'>List&lt;E&gt;</a></code></code></span>
<span class="field-name"><code><a name='ConstantVolumeJoint::bodies'>bodies
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='ConstantVolumeJoint::dampingRatio'>dampingRatio
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='List.html#List::List'>List&lt;E&gt;</a></code></code></span>
<span class="field-name"><code><a name='ConstantVolumeJoint::distanceJoints'>distanceJoints
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='ConstantVolumeJoint::frequencyHz'>frequencyHz
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='List.html#List::List'>List&lt;E&gt;</a></code></code></span>
<span class="field-name"><code><a name='ConstantVolumeJoint::normals'>normals
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='TimeStep.html#TimeStep::TimeStep'>TimeStep</a></code></code></span>
<span class="field-name"><code><a name='ConstantVolumeJoint::step'>step
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='List.html#List::List'>List&lt;E&gt;</a></code></code></span>
<span class="field-name"><code><a name='ConstantVolumeJoint::targetLengths'>targetLengths
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='ConstantVolumeJoint::targetVolume'>targetVolume
</a></code></span>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="constructors">
<h2>Constructors</h2>
<dl>
<dt>
<code><a href='ConstantVolumeJoint.html#ConstantVolumeJoint::ConstantVolumeJoint'>ConstantVolumeJoint</a>(<code><a href='World.html#World::World'>World</a></code> <a name='ConstantVolumeJoint::::_world'>_world</a>, <code><a href='ConstantVolumeJointDef.html#ConstantVolumeJointDef::ConstantVolumeJointDef'>ConstantVolumeJointDef</a></code> <a name='ConstantVolumeJoint::::def'>def</a>)</code>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="methods">
<h2>Methods</h2>
<dl>
<dt>
<code><code><a href='bool.html#bool::bool'>bool</a></code> <a name='ConstantVolumeJoint::constrainEdges'>constrainEdges</a>(<code><a href='TimeStep.html#TimeStep::TimeStep'>TimeStep</a></code> <a name='ConstantVolumeJoint::constrainEdges::argStep'>argStep</a>)</code></dt>
<dd>

 Apply the position correction to the particles.
</dd>
<dt>
<code>void <a name='ConstantVolumeJoint::destructor'>destructor</a>()</code></dt>
<dd>
</dd>
<dt>
<code>void <a name='ConstantVolumeJoint::getAnchorA'>getAnchorA</a>(<code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='ConstantVolumeJoint::getAnchorA::argOut'>argOut</a>)</code></dt>
<dd>
</dd>
<dt>
<code>void <a name='ConstantVolumeJoint::getAnchorB'>getAnchorB</a>(<code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='ConstantVolumeJoint::getAnchorB::argOut'>argOut</a>)</code></dt>
<dd>
</dd>
<dt>
<code>void <a name='ConstantVolumeJoint::getReactionForce'>getReactionForce</a>(<code><a href='num.html#num::num'>num</a></code> <a name='ConstantVolumeJoint::getReactionForce::inv_dt'>inv_dt</a>, <code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='ConstantVolumeJoint::getReactionForce::argOut'>argOut</a>)</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='num.html#num::num'>num</a></code> <a name='ConstantVolumeJoint::getReactionTorque'>getReactionTorque</a>(<code><a href='num.html#num::num'>num</a></code> <a name='ConstantVolumeJoint::getReactionTorque::inv_dt'>inv_dt</a>)</code></dt>
<dd>
</dd>
<dt>
<code>void <a name='ConstantVolumeJoint::inflate'>inflate</a>(<code><a href='num.html#num::num'>num</a></code> <a name='ConstantVolumeJoint::inflate::factor'>factor</a>)</code></dt>
<dd>
</dd>
<dt>
<code>void <a name='ConstantVolumeJoint::initVelocityConstraints'>initVelocityConstraints</a>(<code><a href='TimeStep.html#TimeStep::TimeStep'>TimeStep</a></code> <a name='ConstantVolumeJoint::initVelocityConstraints::argStep'>argStep</a>)</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='bool.html#bool::bool'>bool</a></code> <a name='ConstantVolumeJoint::solvePositionConstraints'>solvePositionConstraints</a>(<code><a href='num.html#num::num'>num</a></code> <a name='ConstantVolumeJoint::solvePositionConstraints::baumgarte'>baumgarte</a>)</code></dt>
<dd>

 Solves for the impact of this joint on the positions of the connected
 bodies. Implements abstract method in <code><a href='Joint.html#Joint::Joint'>Joint</a></code>.
</dd>
<dt>
<code>void <a name='ConstantVolumeJoint::solveVelocityConstraints'>solveVelocityConstraints</a>(<code><a href='TimeStep.html#TimeStep::TimeStep'>TimeStep</a></code> <a name='ConstantVolumeJoint::solveVelocityConstraints::argStep'>argStep</a>)</code></dt>
<dd>

 Solves for the impact of this joint on the velocities of the connected
 bodies. Implements abstract method in <code><a href='Joint.html#Joint::Joint'>Joint</a></code>.
</dd>
</dl>
</section>

<footer></footer>

</body></html>
